import * as TYPES from '../Actions/actionTypes';

const initialState = {
	order: {},
	orderuser:{}
};

let orderReducer = (state=initialState, action)=>{
	switch(action.type){
		case TYPES.ORDER_ALL:
			return {
				...state,
				order: action.order
			};
		case TYPES.ORDER_USER:
			return {
				...state,
				orderuser: action.orderuser
			};
		default: 
			return state;
	}

}


export default orderReducer;
